/**
 * 项目名称：MSHF
 * 包名称：com.mt.component.exception
 * 文件名称：DataOperateException.java
 */
package com.mt.component.exception;

/**
 * 类名称：DataOperateException <br>
 * 类描述： java抛出异常flex前台进行捕获的公用异常类<br>
 * 创建人： 马腾 <br>
 * 创建时间：Dec 9, 2012 12:08:24 AM <br>
 * 修改人： 马腾 <br>
 * 修改时间：Dec 9, 2012 12:08:24 AM <br>
 */
public class DataOperateException extends RuntimeException {

	private static final long serialVersionUID = -8195433703670095839L;
	
	/**操作失败*/
	public static final String OPERATE_FAILURE = "OPERATE_FAILURE";
	/**发现重复数据*/
	public static final String FIND_REPATE_DATA = "FIND_REPATE_DATA";
	/**发现有用户绑定角色*/
	public static final String FIND_USER_BIND_ROLE = "FIND_USER_BIND_ROLE";

	protected String errorCode;

	public DataOperateException(String message, Throwable cause) {
		super(message, cause);
	}

	public DataOperateException( String errorCode,String message) {
		super(message);
		this.errorCode = errorCode;
	}

	public String getErrorCode() {
		return errorCode;
	}

	public void setErrorCode(String errorCode) {
		this.errorCode = errorCode;
	}
}
